<?php 
$this->pageTitle='Đặt hàng trực tuyến';
$this->breadcrumbs=array(
	'Đặt hàng trực tuyến',
);
?>
<div class="head-tool-title">
 	<div class="main-title"><a href="#">Đặt hàng trực tuyến</a></div>
</div>
<div class="content-box">
<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'order-form',
	'enableAjaxValidation'=>false,
)); ?>
	<div class="box-order s1">
		<h3>Địa chỉ thanh toán</h3>
			<div class="row">
				<?php echo $form->labelEx($orderForm,'name'); ?>
				<?php echo $form->textField($orderForm,'name'); ?>
				<?php echo $form->error($orderForm,'name'); ?>
			</div>
			<div class="row">
				<?php echo $form->labelEx($orderForm,'phone'); ?>
				<?php echo $form->textField($orderForm,'phone'); ?>
				<?php echo $form->error($orderForm,'phone'); ?>
			</div>
			<div class="row">
				<?php echo $form->labelEx($orderForm,'address'); ?>
				<?php echo $form->textArea($orderForm,'address'); ?>
				<?php echo $form->error($orderForm,'address'); ?>
			</div>
	</div>
	<div class="box-order s2">
		<h3>Phương thức vận chuyển</h3>
			<div class="row">
				<?php 
				$shipMethod = CHtml::listData(ShippingMethod::model()->findAll(), 'id', 'title');
				echo $form->radioButtonList($orderForm,'shipMethod', $shipMethod); ?>
				<?php echo $form->error($orderForm,'shipMethod'); ?>
			</div>
	</div>
	<div class="box-order s3">
		<h3>Phương thức thanh toán</h3>
			<div class="row">
				<?php 
				$paymentData = CHtml::listData(PaymentMethod::model()->findAll(), 'id', 'title');
				echo $form->radioButtonList($orderForm,'methodPayment', $paymentData); ?>
				<?php echo $form->error($orderForm,'methodPayment'); ?>
			</div>
	</div>
	<div class="box-order s4">
		<h3>Thông tin đơn hàng</h3>
		<?php $this->renderPartial('cartinfo');?>
	</div>
	
	<div class="payment">
		<button type="submit" class="button">Thanh Toán</button>
	</div>
	<?php $this->endWidget(); ?>
</div>
</div>